public class test {
    public static void main(String[] args) {
        File file1 = new File("file1", 1000);
        File file2 = new File("file2", 2000);
        File file3 = new File("file3", 3000);
        Directory dir1 = new Directory("dir1");
        dir1.addItem(new File("file4", 4000));
        dir1.addItem(new File("file5", 5000));
        Directory dir = new Directory("dir");
        dir.addItem(file1);
        dir.addItem(file2);
        dir.addItem(file3);
        System.out.println("File Size:"+file1.getSize());
        System.out.println("Directory Size:"+dir.getSize());
    }
}
